package org.wddsicmd.util;

import java.util.*;
import java.awt.*;

public class Resource {
	ResourceBundleUtil mResourceBundleUtil;

	public static Color getBackgroundColor(){
		return Color.decode("#5b9bd5");
	}
	public static Color getBorderColor(){
		return Color.decode("#41719c");
	}
	public static Color getForegroundColor(){
		return Color.decode("#ffffff");
	}
	public static Color getHighlightColor(){
		return Color.decode("#deebf7");
	}
	public Resource(String labels){
		mResourceBundleUtil = ResourceBundleUtil.getLAFBundle(labels);
	}
	public String getStringFromLabels(String key){
		String lablesString = "unknown";
		if(mResourceBundleUtil != null){
			lablesString = mResourceBundleUtil.getString(key);
		}
		return lablesString;
	}
	public static String getStringFromLabels(ResourceBundleUtil util, String key){
		String lablesString = "unknown";
		if(util != null){
			lablesString = util.getString(key);
		}
		return lablesString;
	}	
}

